using Microsoft.AspNetCore.Mvc;

namespace DecimalDemo.Host.Controllers;

[ApiController]
[Route("[controller]")]
public class TestController : ControllerBase
{
    private readonly ILogger<TestController> _logger;

    public TestController(ILogger<TestController> logger)
    {
        _logger = logger;
    }

    public string Get()
    {
        decimal a = -200;
        _logger.LogError(a.ToString("C"));
        return a.ToString("C");
    }
}
